package com.itheima.manager;

import com.itheima.service.db.AnalysisByDayService;
import com.itheima.vo.AnalysisSummaryVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component
public class AnalysisManager {

    @DubboReference
    AnalysisByDayService analysisByDayService;

    public ResponseEntity findSummary() {
        AnalysisSummaryVo summary = analysisByDayService.findSummary();
        return ResponseEntity.ok(summary);
    }
}
